package com.juyu.miliao.common.constant;

import com.juyu.miliao.common.domain.vo.IntegralRewardsAndPunishmentsVO;
import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

/**
 * 积分奖惩类型
 * @author xuanqicheng
 */
@Getter
public enum  IntegralRewardsAndPunishmentsType {

    A_SINGLE_CALL_LASTS_MORE_THAN_THREE_MINUTES(1,"单次通话时长超过3分钟",3,
            "无限制",1,1,""),

    DAY_CALL_IS_10_TO_29_MINUTES(2,"当天总通话时长10~29分钟",10,
            "",1,1,""),

    DAY_CALL_IS_30_TO_59_MINUTES(3,"当天总通话时长30~59分钟",20,
            "",1,1,""),

    DAY_CALL_IS_60_TO_99_MINUTES(4,"当天总通话时长60~99分钟",40,
            "",1,1,""),

    DAY_CALL_IS_100_TO_129_MINUTES(5,"当天总通话时长100~129分钟",80,
            "",1,1,""),

    DAY_CALL_IS_130_TO_179_MINUTES(6,"当天总通话时长120~179分钟",160,
            "",1,1,""),

    DAY_CALL_THAN_180_MINUTES(7,"当天总通话时长180分钟以上",320,"",
            1,1,""),

    ONE_DAY_NOT_CALL(8,"一天无通话",-1,
            "",4,1,""),

    THREE_DAY_NOT_CALL(9,"三天无通话",-2,
            "",4,1,""),

    FIVE_DAY_NOT_CALL(10,"五天无通话",-3,
            "",4,1,""),

    DIAMONDS_FOR_INTEGRAL_BY_100(11,"每100钻石获取积分",1,
            "无限制",3,1,""),

    SUCCESSFUL_RELEASE_OF_A_DYNAMIC(12,"成功发布一条动态",2,
            "每天五条封顶",2,1,""),

    SINGLE_DYNAMIC_POINT_PRAISE_OVER_20(13,"单条动态点赞超过20",2,
            "无限制",2,1,""),

    SINGLE_DYNAMIC_COMMENT_AND_REPLY_OVER_10_PEOPLE(14,"单条动态超过10人评论",2,"不限",2,1,""),
    SHARE_MYSELF_ONE_DYNAMIC(15,"分享自己的一条动态",2,
            "每天限制1条",2,1,""),

    UPLOAD_PIC(16,"成功上传3张照片",1,
            "1次/一天",2,1,""),

    UPLOAD_VIDEO(17,"成功上传1条视频",1,
            "1次/一天",2,1,""),

    FANS_ADD_BY_100(18,"每增加100粉丝",10,
            "不限",2,1,""),

    DIAMOND_YESTERDAY_RANKS_FIRST(19,"钻石榜昨日榜第一名",30,
            "不限",2,1,""),

    DIAMOND_YESTERDAY_RANKS_SECOND(20,"钻石榜昨日榜第二名",20,
            "不限",2,1,""),

    DIAMOND_YESTERDAY_RANKS_THIRD(21,"钻石榜昨日榜第三名",10,
            "不限",2,1,""),

    DIAMOND_WEEK_RANKS_FIRST(22,"钻石榜周榜第一名",80,
            "不限",2,1,""),

    DIAMOND_WEEK_RANKS_SECOND(23,"钻石榜周榜第二名",50,
            "不限",2,1,""),

    DIAMOND_WEEK_RANKS_THIRD(24,"钻石榜周榜第三名",30,
            "不限",2,1,""),

    CALL_YESTERDAY_RANKS_FIRST(25,"通话榜昨日榜第一名",20,
            "不限",2,1,""),

    CALL_YESTERDAY_RANKS_SECOND(26,"通话榜昨日榜第二名",10,
            "不限",1,1,""),

    CALL_YESTERDAY_RANKS_THIRD(27,"通话榜昨日榜第三名",5,
            "不限",2,1,""),

    CALL_WEEK_RANKS_FIRST(28,"通话榜周榜第一名",50,
            "不限",2,1,""),

    CALL_WEEK_RANKS_SECOND(29,"通话榜周榜第二名",30,
            "不限",2,1,""),

    CALL_WEEK_RANKS_THIRD(30,"通话榜周榜第三名",10,
            "不限",2,1,""),

    REPORTED(31,"被举报",-1,
            "每天最多三分",5,1,""),

    KICK_ONE_DAY(32,"封号一天",-10,
            "不限",5,1,""),

    KICK_ONE_WEEK(33,"封号一周",-100,
            "不限",5,1,""),

    KICK_ONE_MONTH(34,"封号一个月",-1000,
            "不限",5,1,""),

    KICK_FOREVER(35,"永久封号",-10000,
            "不限",5,1,""),

    SYSTEM_REWARDS(36,"系统奖励",10,
            "运营设置",2,0,""),

    SYSTEM_PUNISHMENT(37,"系统惩罚",-10,
            "运营设置",5,0,""),
    ;
    /**
     * 类型id
     */
    private int code;
    /**
     * 账单标题
     */
    private String title;
    /**
     * 奖惩积分，正值为增加，负值为减少
     */
    private int integralValue;

    /**
     * 账单描述
     */
    private String desc;
    /**
     * 1.通话获得,2:行为获得,3:钻石获得,4:通话扣除,5:违规扣除
     */
    private int type;
    /**
     * 是否展示 1：展示，0:不展示
     */
    private int isShow;

    private String icon;

    IntegralRewardsAndPunishmentsType(int code, String title, int integralValue,
                                      String desc,int type,int isShow,String icon) {
        this.code = code;
        this.title = title;
        this.integralValue = integralValue;
        this.desc = desc;
        this.type = type;
        this.isShow = isShow;
        this.icon = icon;
    }



}
